package com.ruoyi.store.mapper;

import java.util.List;
import com.ruoyi.store.domain.StoOrderDetail;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单明细Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-08
 *
 */
@Mapper
public interface StoOrderDetailMapper 
{
    /**
     * 查询订单明细
     * 
     * @param id 订单明细主键
     * @return 订单明细
     */
    public StoOrderDetail selectStoOrderDetailById(Long id);

    /**
     * 查询订单明细列表
     * 
     * @param stoOrderDetail 订单明细
     * @return 订单明细集合
     */
    public List<StoOrderDetail> selectStoOrderDetailList(StoOrderDetail stoOrderDetail);

    /**
     * 新增订单明细
     * 
     * @param stoOrderDetail 订单明细
     * @return 结果
     */
    public int insertStoOrderDetail(StoOrderDetail stoOrderDetail);

    /**
     * 修改订单明细
     * 
     * @param stoOrderDetail 订单明细
     * @return 结果
     */
    public int updateStoOrderDetail(StoOrderDetail stoOrderDetail);

    /**
     * 删除订单明细
     * 
     * @param id 订单明细主键
     * @return 结果
     */
    public int deleteStoOrderDetailById(Long id);

    /**
     * 批量删除订单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStoOrderDetailByIds(Long[] ids);
}
